package com.itheima.classloader;

import java.io.IOException;
import java.io.InputStream;

public class Demo03 {

    public static void main(String[] args) throws IOException {
        InputStream is = ClassLoader.getSystemResourceAsStream("a.txt");
        //读取数入流中的数据
        int  b;
        while ((b=is.read())!=-1){
            System.out.println((char)b);
        }

    }
}
